<?php
	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	class Ventedeclidisp extends Baseobj{

		var $id;
		var $venteprod;
		var $declidisp;



		const TABLE="ventedeclidisp";
		var $table=self::TABLE;

		var $bddvars = array("id", "venteprod", "declidisp");

		function __construct($id = 0){
			parent::__construct();

			if($id > 0)
 			  $this->charger($id);
		}

		function charger($id){
			return $this->getVars("select * from $this->table where id=\"$id\"");
		}

		function charger_vdec($venteprod, $declidisp){
			return $this->getVars("select * from $this->table where venteprod=\"$venteprod\" and declidisp=\"$declidisp\"");
		}

	}
?>